//
//	 ______    ______    ______    
//	/\  __ \  /\  ___\  /\  ___\   
//	\ \  __<  \ \  __\_ \ \  __\_ 
//	 \ \_____\ \ \_____\ \ \_____\ 
//	  \/_____/  \/_____/  \/_____/ 
//
//	Powered by BeeFramework
//
//
//  OrderCell.m
//  Pizza
//
//  Created by sendInfo on 2015-04-20.
//  Copyright (c) 2015年 sendInfo. All rights reserved.
//

#import "OrderCell.h"

#pragma mark -

@implementation OrderCell

SUPPORT_AUTOMATIC_LAYOUT( YES )
SUPPORT_RESOURCE_LOADING( YES )

- (void)load
{
}

- (void)unload
{
}

- (void)dataDidChanged
{
    // TODO: fill data
    OrderGoods *og = self.data;
    $(@"name").DATA(og.title);
    $(@"num").DATA([NSString stringWithFormat:@"数量:%@",og.quantity]);
    $(@"price").DATA([NSString stringWithFormat:@"单价:￥%@元",og.price]);
    
    NSString *url = [NSString stringWithFormat:@"%@/%@",[HttpRequest sharedInstance].imageUrl,og.img];
    $(@"photo").DATA(url);
}

- (void)layoutDidFinish
{
    // TODO: custom layout here
}

@end
